home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / tripong.swf / scripts / frame_3 / PlaceObject2_28_5 / CLIPACTIONRECORD onClipEvent(load).as < prev    next >
Encoding:
Text File  |  2007-04-23  |  1.3 KB  |  58 lines

  1. onClipEvent(load){
  2.    ypos2 = 0;
  3.    _parent.tex = 0;
  4.    _parent.tex1 = 0;
  5.    op = 1.2;
  6.    op2 = 0.8;
  7.    schwabbel = 1;
  8.    rob = 0.9;
  9.    ber = 0;
  10.    e = 0;
  11.    a = 0;
  12.    xp = new Array(275 + Math.random() - 0.5,250,300,100,100,450,450);
  13.    yp = new Array(200 + Math.random() - 0.5,250,250,150,250,150,250);
  14.    sizor = new Array(20,20,20,20,20,20,20);
  15.    sp = new Array(1,2,0,0,1,2,4,3,5,6);
  16.    ep = new Array(0,1,2,1,2,0,3,4,6,5);
  17.    ballz = xp.length;
  18.    strichz = sp.length;
  19.    xbew = new Array(0,0,0,0,0,0,0,0,0,0);
  20.    ybew = new Array(0,0,0,0,0,0,0,0,0,0);
  21.    xb = new Array();
  22.    yb = new Array();
  23.    slang = new Array(35,35,35,35,35,35);
  24.    spower = 40;
  25.    slang2 = new Array(strichz);
  26.    the_count = new Array(ballz);
  27.    a = 0;
  28.    while(a < strichz)
  29.    {
  30.       slang2[a] = slang[a];
  31.       if(the_count[ep[a]] * 1 > 0)
  32.       {
  33.          the_count[ep[a]] = the_count[ep[a]] * 1 + 1;
  34.       }
  35.       else
  36.       {
  37.          the_count[ep[a]] = 2;
  38.       }
  39.       if(the_count[sp[a]] * 1 > 0)
  40.       {
  41.          the_count[sp[a]] = the_count[sp[a]] * 1 + 1;
  42.       }
  43.       else
  44.       {
  45.          the_count[sp[a]] = 2;
  46.       }
  47.       a++;
  48.    }
  49.    e = 0;
  50.    while(e < ballz)
  51.    {
  52.       ybew[e] = (Math.random() * 0.1 - 0.05) * 0.03;
  53.       xbew[e] = (Math.random() * 0.1 - 0.05) * 0.03;
  54.       e++;
  55.    }
  56.    md = 0;
  57. }
  58.